/*
 * @Author: your name
 * @Date: 2021-06-26 09:49:43
 * @LastEditTime: 2021-06-26 09:55:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \6.26作业\yyds\index.js
 */
const koa = require("koa")
const bodyparser = require("koa-bodyparser")
const app = new koa()
const router = require("./router")
router(app)
app.use(bodyparser())
app.listen(8888, () => {
    console.log("listen to 8888")
})